<?php
class ModuleSnsOGZ extends ModuleSns
{
    /**
     * @var int $platformId
     */
    protected $platformId;

    /**
     * @see ModuleSns::__construct()
     */
    public function __construct($userId, $platform, $configs)
    {
        /**
         * array(
         *     'appId' => array('key' => 'appId', 'value' => ...),
         *     'appSecret' => array('key' => 'appSecret', 'value' => ...),
         *     'appToken' => array('key' => 'appToken', 'value' => ...),
         *     'payToken' => array('key' => 'payToken', 'value' => ...),
         * )
         *
         * @var array $configs
         */
        parent::__construct($userId, $platform, $configs);
    }

    /**
     * @see ModuleSns::createJsEmbededCode()
     */
    public function createJsEmbeddedCode()
    {
        return
"<script type='text/javascript'src='https://gateway.overgamez.com/client/19'></script>
<script>OGZ.init();</script>
";
    }

    /**
     * @see ModuleSns::getPfToken()
     */
    public function getPfToken()
    {
        return SzParam::getReqParam('auth_key');
    }

    /**
     * @see ModuleSns::getPfSignature()
     */
    public function getPfSignature()
    {
        return SzParam::getReqParam('auth_key');
    }

    /**
     * @see ModuleSns::initializeOnIndex()
     */
    public function initializeOnIndex()
    {
        return array($this->userId, ModuleSnsConst::PFVK);
    }

    /**
     * @see ModuleSns::getUserInfo()
     */
    public function getUserInfo($platformId)
    {
    }

    /**
     * @see ModuleSns::getUserInfos()
     */
    public function getUserInfos($platformId)
    {
    }

    /**
     * @see ModuleSns::getPfFriends()
     */
    protected function getPfFriends($userId)
    {
        return array();
    }

    /**
     * @see ModuleSns::preparePfApiEnv()
     */
    protected function preparePfApiEnv()
    {
    }

    /**
     * @see ModuleSns::checkResult()
     */
    protected function checkResult($result)
    {
    }

    /**
     * Platform fetch games player info
     */
    public function fetchUserInfo()
    {
    }
}